#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class SubsidyForStudent : Business.BusinessBase<SubsidyForStudent, int>
	{
		#region Fields and Properties

		private DateTime beginDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime BeginDate
		{
			get { return beginDate; }
			set
			{
				if (value != beginDate)
				{
					MarkChanged("BeginDate");
					beginDate = value;
				}
			}
		}

		private String subsidyDescription = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String SubsidyDescription
		{
			get { return subsidyDescription; }
			set
			{
				if (value != subsidyDescription)
				{
					MarkChanged("SubsidyDescription");
					subsidyDescription = value;
				}
			}
		}

		private String subsidyName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String SubsidyName
		{
			get { return subsidyName; }
			set
			{
				if (value != subsidyName)
				{
					MarkChanged("SubsidyName");
					subsidyName = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public SubsidyForStudent()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override SubsidyForStudent DataSelect(int id)
		{
			return Services.DALService.SubsidyForStudentService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.SubsidyForStudentService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.SubsidyForStudentService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.SubsidyForStudentService.Delete(this);
		}

		#endregion Base overrides
	}
}
